package com.bone.common.vo;

/**
 * @author : wkk
 * @date : 2020/12/6 21:32
 * Description :
 */
public enum ResultCode {
    /**
     * 返回消息 以及状态码
     */
    SUCCESS(200, "操作成功"),
    FAILED(500, "操作失败"),
    VALIDATE_FAILED(404, "参数检验失败"),
    UNAUTHORIZED(401, "暂未登录或token已经过期"),
    FORBIDDEN(403, "没有相关权限"),
    METHOD_NOT_SUPPORT(405, "请求方法不支持异常");

    private int code;
    private String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
